import ACTION_TYPE from '../constant/action-types';

export function error(error, action) {
  return {
    type: ACTION_TYPE.ERROR,
    error,
    action,
  };
}
